<!DOCTYPE html>
<html lang="zh-cn" xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta charset="utf-8">
    <title>xuqingkai.com</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <script src="./js/site.js" type="text/javascript"></script>
</head>
<body>
    <h1 id="h1" style="display:none"><span id="seconds">0</span> 秒后跳转<br /><br /> <a href="javascript:void(0);" id="url"></a></h1>
    <script type="text/javascript">
        var h1 = document.getElementById('h1');
        var span = document.getElementById('seconds');
        var a = document.getElementById('url');
        if(window.location.search.indexOf('404')>0 || document.referrer.indexOf('gitee.com')>0){
            h1.style='display:block';
            h1.innerText=document.getElementsByTagName('title')[0].innerText;
        }else{
            if(span.innerHTML=='0'){
                window.location.href=url;
            }else{
                h1.style='display:block';
                a.innerText=url;
                a.href=url;
                window.setInterval(function(){
                    var i = span.innerHTML*1;
                    i--;
                    if(i>=0){span.innerHTML=i;}
                    if(i<=0){
                        window.location.href=url;
                    }
                },1000);
            }
        }
    </script>
</body>
</html>